interface responseData {
  code: number,
  ok: boolean,
  message: string
}

export interface formValueType {
  category1Id: number | string, category2Id: number | string, category3Id: number | string
}

export interface categoryItemType {
  createTime: string,
  id: string | number,
  name: string,
  updateTime: string,
  category1Id?: string | number,
  category2Id?: string | number,
}
export interface categoryListType extends responseData {
  data: categoryItemType[]
}

// attr中：attrValueList数组类型、单个对象类型，整个数组类型
export interface attrValueType {
  id?: number;
  createTime?: any;
  updateTime?: any;
  valueName: string;
  attrId?: number;
  flag?: boolean
}
export interface attrItemType {
  attrName: string,
  attrValueList: attrValueType[],
  categoryId?: number | string,
  categoryLevel: number,
  createTime?: string | null,
  id?: number | string,
  updateTime?: string | null
}
export interface attrListType extends responseData {
  data: attrItemType[]
}